<% @main_header = "#{link_to('Ptrack:', '/')} Users" %>
<div id="info" class='span-10 colborder'>
  <h3><%= link_to 'Create New User', url_for(:controller=>:users,:action=>:new) %></h3>
  <ul>
    <h3>List Of All Users</h3>
    <% for user in @users %>
      <li><strong><%= user.login %></strong> <%= user.status %> <%= link_to('edit', :controller => 'users', :action => 'edit', :id => user) %></li>
      <br />
    <% end %>
    <br />
  </ul>
</div>
<div class="span-13 last">
  <h3>My Status</h3>
  <div class="box">
    <table>
      <tr>
        <td>
          <strong><%= current_user.login %></strong> <%= current_user.status %> <%= link_to('edit', :controller => 'users', :action => 'edit', :id => current_user) %>
          <% form_tag "/users/update_status/#{current_user.id}"  do -%>
            <%= text_field 'user','status',:size=>20 %>
            <%= submit_tag 'Update' %>
          <%  end -%>
        </td>
      </tr>
    </table>
  </div>
  <h3>Last Activities In My Projects</h3>
  <select size="10" name="act" id="act" style="width:100%">
    <% for activitylog in @activity_logs %>
      <option value=""><%= activitylog.description %></option>
    <% end %>
  </select>
</div>
